import LayoutDashboard from '@/components/layout/dashboard.vue';

const demoRoutes = [
  {
    path: '/demo',
    name: 'Demo',
    meta: { title: 'Demo', showMenu: true, noShowChildren: false },
    component: LayoutDashboard,
    children: [
      {
        path: 'index',
        name: 'DemoIndex',
        component: () => import('@/views/demo/index.vue'),
        meta: { title: 'demo-1', authCode: 1000000, hide: false }
      },
      {
        path: 'demo-list',
        name: 'DemoList',
        component: () => import('@/views/demo/demo-list/index.vue'),
        meta: { title: 'demo-list', authCode: 1000000, hide: false }
      },
      {
        path: 'table',
        name: 'DemoTable',
        component: () => import('@/views/demo/index.vue'),
        meta: { title: 'demo-table', authCode: 1000000, hide: false }
      },
      {
        path: 'charts',
        name: 'DemoCharts',
        component: () => import('@/views/demo/chart.vue'),
        meta: { title: 'demo-charts', authCode: 1000000, hide: false }
      },
      {
        path: 'download',
        name: 'DemoDownload',
        component: () => import('@/views/demo/demo-download/index.vue'),
        meta: { title: 'demo-download', authCode: 1000000, hide: false }
      },
      {
        path: 'dialog',
        name: 'DemoDialog',
        component: () => import('@/views/demo/demo-dialog/index.vue'),
        meta: { title: 'demo-dialog', authCode: 1000000, hide: false }
      },
      {
        path: 'imgUploader',
        name: 'ImgUploader',
        component: () => import('@/views/demo/demo-img-upload/index.vue'),
        meta: { title: 'demo-图片上传组件', authCode: 1000000, hide: false }
      },
      {
        path: 'editor',
        name: 'Editor',
        component: () => import('@/views/demo/demo-editor/index.vue'),
        meta: { title: 'demo-富文本编辑器组件', authCode: 1000000, hide: false }
      },
      {
        path: 'base-form',
        name: 'BaseForm',
        component: () => import('@/views/demo/demo-base-form/index.vue'),
        meta: { title: 'demo-选择框组件', authCode: 1000000, hide: false }
      }
    ]
  }
];

export default demoRoutes;
